import classNames from 'classnames';
import { useEffect } from 'react';

import classes from './index.module.less';
type Props = {
  title?: string;
  children?: React.ReactNode;
  style?: React.CSSProperties;
  className?: string;
};

const PageView: React.FC<Props> = ({ title = '魔镜AI绘画', children, ...props }) => {
  useEffect(() => {
    document.title = title;
  }, [title]);
  return (
    <div {...props} className={classNames(classes.wrap, props.className)}>
      {children}
    </div>
  );
};

export default PageView;
